﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderSystemApi.Pojo
{
    [SugarTable("goods")]
    public class Goods
    {
        public Goods() { }
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }
        [SugarColumn(ColumnName = "Price")]
        public double Price { get; set; }
        public override string ToString()
        {
            return "goodsId:" + Id + ",goodsName:" + Name + ",goodsPrice:" + Price;
        }
    }
}
